<template>
  <!-- 顶部导航栏-->
  <view class="header">
    <view class="left-text" @click="comeBack">
      <uni-icons type="back" size="10" color="#0c34ba"></uni-icons>
      返回
    </view>
    <view class="title">
      {{title}}
    </view>
    <view class="right-text" style="width: 50rpx;">
    </view>
  </view>
  </view>
</template>

<script>
  export default {
    name: "HeaderNav",
    props: ['title'],
    methods: {
      comeBack() {
        uni.navigateBack()
      }
    }
  }
</script>

<style lang="scss" scoped>
  .header {
    height: 98rpx;
    padding: 0 40rpx;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 24rpx;
    background-color: #fff;

    .title {
      font-size: 26rpx;
    }

    .left-text {
      color: #0c34ba;
    }
  }
</style>
